var o, e = require, t = module, n = exports, i = this && this.__extends || (o = function(t, e) {
    return (o = Object.setPrototypeOf || {
        __proto__: []
    } instanceof Array && function(t, e) {
        t.__proto__ = e;
    } || function(t, e) {
        for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
    })(t, e);
}, function(t, e) {
    function n() {
        this.constructor = t;
    }
    o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, 
    new n());
}), a = this && this.__decorate || function(t, e, n, o) {
    var a, r = arguments.length, l = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
    if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) l = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; 0 <= c; c--) (a = t[c]) && (l = (r < 3 ? a(l) : 3 < r ? a(e, n, l) : a(e, n)) || l);
    return 3 < r && l && Object.defineProperty(e, n, l), l;
};

Object.defineProperty(n, "__esModule", {
    value: !0
});

var r = e("AudioManager"), s = e("BaseView"), c = e("Global"), l = e("GameManager"), d = e("GameConfig"), u = e("GameData"), p = e("UIManager"), h = e("WebManager"), f = cc._decorator, g = f.ccclass, m = (f.property, 
function(t) {
    function e() {
        return null !== t && t.apply(this, arguments) || this;
    }
    return i(e, t), e.prototype.onClickPlay = function() {
        r.default.getInstance().playAudio("按钮2"), h.default.getInstance().sentLog("点击视频排行界面开始游戏按键"), 
        l.default.getInstance().matchType = l.MatchType.正常, -1 < c.G.seasoncount && u.GD.seasonRewardTime < u.GD.seasonLastTime && !u.GD.isReward ? (cc.log("赛季奖励未领取"), 
        p.default.getInstance().loadPopPnl("season_reward")) : c.G.platform != c.Platform.XiaoDu ? !d.GC.isVaild("empty") && u.GD.petDataList.some(function(t, e) {
            return t.has && c.G.chargeList[e];
        }) && (d.GC.isCircle && !d.GC.isVaild("try") && u.GD.tryFailCount >= d.GC.cancelTryCount && (u.GD.topRank < c.G.gunModelList.length || u.GD.skins.length < c.G.personModelList.length) && (u.GD.emptyFailCount = 0, 
        u.GD.tryFailCount = 0), u.GD.emptyFailCount < d.GC.cancelEmptyCount) ? p.default.getInstance().loadPnl("empty") : !d.GC.isVaild("try") && u.GD.tryFailCount < d.GC.cancelTryCount && (u.GD.topRank < c.G.gunModelList.length || u.GD.skins.length < c.G.personModelList.length) ? p.default.getInstance().loadPopPnl("try") : l.default.getInstance().matchGame() : l.default.getInstance().matchGame();
    }, e.prototype.onClickClose = function() {
        r.default.getInstance().playAudio("按钮2"), h.default.getInstance().sentLog("点击视频排行界面关闭提示按键"), 
        this.hidePnl();
    }, e.prototype.start = function() {}, a([ g ], e);
}(s.default));

n.default = m;